-- GENERATED SPELL FOR [Winterfin Oracle] --


function spell0_25216(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25216', 3000, 1)
end

function spell1_25216(pUnit, Event) --@Unstable Magic,Self--
pUnit:FullCastSpellOnTarget(50272,pUnit)
pUnit:RegisterEvent('Sorts_25216', 617, 1)
end

function Sorts_25216(pUnit, Event)
local choix_sorts_25216 = math.random(0, 1)
if choix_sorts_25216 == 0 then
pUnit:RegisterEvent('spell0_25216', 1, 1)
end
if choix_sorts_25216 == 1 then
pUnit:RegisterEvent('spell1_25216', 1, 1)
end
end

function mob25216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25216', math.random(1500, 3000), 1)
end

function mob25216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25216, 1, 'mob25216_Action')
RegisterUnitEvent(25216, 2, 'mob25216_Leave')
RegisterUnitEvent(25216, 3, 'mob25216_Kill')
RegisterUnitEvent(25216, 4, 'mob25216_Die')
